export const LOGOUT = 'logout'
export const LOGIN = 'login'

export function login(payload) {
    // 在函数中创建login action

    return { type: LOGIN, payload }
}

export function logout() {
    return { type: LOGOUT }
}


export default {
    login,
    logout
}